package com.zzx.project.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzx.project.entity.Comment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentDao extends BaseMapper<Comment> { //评论Dao
    //添加评论
    int addComment(@Param("comment") Comment comment);
    //根据文章获取评论
    List<Comment> getCommentsByAid(@Param("aid") int aid);
}
